<?php

defined('MI7') or exit('No direct script access allowed');


/**
 * 是否开发环境
 */
$configs['dev'] = true;

/**
 * --------------------------------------------------------------------------
 *  捕获php异常日志
 *  异常日志地址
 * --------------------------------------------------------------------------
 */
$configs['error_file_name'] = 'php_error.log'; //

/**
 * 域名 （80端口之名，请带上端口）
 * 结尾不要带  /
 * 如： www.helloworld.com:21
 */
$configs['domain'] = '';

/**
 * 静态文件域名地址
 * 结尾不要带  /
 * 如： static.helloworld.com
 */
$configs['static_domain'] = '';

/**
 * 二级目录
 * 以 / 开始 ，结尾不带  /
 * 如： /hello/world
 * auto: 当配制为auto时，有系统自动判断
 */
$configs['sub_directory'] = 'auto';


/**
 * 后缀
 * .html
 */
$configs['url_suffix'] = '.html';

/**
 * 全路径情况下的index文件名
 */
$configs['index_page'] = 'index.php';


/**
 * 静态文件二级目录
 * 开始不带 /，结尾带  /
 * 如： public/
 */
$configs['web_path'] = 'public/';

/**
 * 设置默认时区
 */
$configs['timezone'] = 'Asia/Shanghai';

/**
 * APP
 */
$configs['app'] = array(
    'system',
    'weixin',
    'xiangcun'
);

// 默认的成员 和 资源 模板
$configs['default'] = array(
    'account' => 'rmb', // 默认的帐目
    'member' => 'member', // 默认的成员
    'content' => 'content', // 默认的CMS
);

$configs['user_role'] = array(
    'admin' => '管理员',
    'guest' => '游客'
);

/**
 * 支付配制
 * 具本配制放在各app的config.php中
 */
$configs['pay'] = array();
// ############################################
// JWT 相关参数

$configs['jwt_encode_key_offset'] = 'K'; // 计算得出的  base64编辑 密钥 下标偏移量
$configs['jwt_token_expired'] = 3000; // 300 token 过期时长 在token期满 且 jwt_token_nbf 还有效的情况下， 重新签发
$configs['jwt_token_nbf'] = 9000; // 900 jwt有效时长
$configs['jwt_validate_client'] = false; // jwt 验证客户端 HTTP_USER_AGENT 和 IP
$configs['jwt_token_name'] = 'Authorization'; // jwt token名称
$configs['jwt_encode_key'] = array(
    0 => 'gGR4gxo7SliNKLNV5aWPtSVDl5UhUaHrC8IRG6c12nm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ebz7uWFKa8LzuUzw7aYycsdiMBYfMURkUvr2hQyGAT3rjoLxLzvAI7tMe1aKlJb78qqga0ESqTr9TztBoVDOSs8GzWilFVe2HUGDkbzDNpAg7HvNCMF06yQ3AnK0ht3ScyeMXCfp6SFjYkbxriHVl',
    9 => '1Fmnz5hKqgz1yW1SgaQCipTI0LXjFJDSBc9iq8GPpK0XI6EQxmqvPkYjXyvD7tP7RFexHQB0Sfkj2dJHGrBIrHPW2tQghE0QpQ6RAL762oVTjiJE6tmcHB0kWQUp6s8lFOgWJdGRJFsdPkdo8rK8rIicAjhyYMYCmPfl0JrhN0s9IlV0Rt8sUCdegGYTkxERgeTFggrJ9jFVerPYlXbQuScDiDFuivqB52JHHJI2YwVBbcmLaPvcKBYnE2XUetBX'
);
$configs['jwt_secret'] = array(
    0 => '7LwLAyzsC9Y8gJg03KBqIKekfeygI2Lr',
    1 => 'BhiD6IulroPEw2smAKdafn6oGCA1mwyz',
    2 => 'C2ieGMRG07BPaMqXxS063bd9bo4VvkHY',
    3 => 'pNahW3VKEQR01USuOpbkWEYgKVXifXlb',
    4 => '4ht5ySvWgHat91dp0K9EbuKwImWn4oXy',
    5 => '50RqxFnPSencuxhuBluAw6rEKGB2Q9oG',
    6 => 'UxK8kOwL0nycIdiR36CMVXzWBot7aOuX',
    7 => 'HpA5rynSqs50o0FIz0kBe0fF361EdePu',
    8 => 'bGwo0Eo1A8FrefJk9Sgz80whQ5wKelsq',
    9 => 'KqDm6MxzKfMj2uXHQTQkyJ8LU5niTGeS'
);

// ############################################
// session相关
$configs['session_activity'] = 300; // session有效期 60秒

// ############################################
// constants
// 常量
/** 数据库表名常量  */
define('MI7_EXTEND', 'mi7_extend'); //model扩展表
define('MI7_CODE_DEFINITION', 'mi7_code_definition'); //编码定义表
define('MI7_CODE_INFO', 'mi7_code_info'); //编码值表
define('MI7_MATERIAL', 'mi7_material'); //
define("MI7_THIRD_PARTY_CONF", 'mi7_third_party_conf'); //第三方配制 如 微信
// ############################################

/**
 * --------------------------------------------------------------------------
 *  编码相关
 * --------------------------------------------------------------------------
 */
//cd_type 编码类型
define("CD_TYPE_1", "1"); // 1:流水编码
define("CD_TYPE_2", "2"); //2:检索编码
define("CODE_START", "1"); //编码的起始值


/**
 * --------------------------------------------------------------------------
 *  默认分页大小
 * --------------------------------------------------------------------------
 */
define("PAGE_SIZE", 15);
